package org.example.write;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 复杂头数据.这里最终效果是第一行就一个主标题，第二行分类
 *
 * @author Jiaju Zhuang
 **/
@Getter
@Setter
@EqualsAndHashCode
public class ComplexHeadData {
    @ExcelProperty(value = {"主标题","副标题1" ,"字符串标题"},index = 0)
    private String string;
    @ExcelProperty(value = {"主标题","副标题1" , "日期标题"},index = 1)
    private Date date;
    @ExcelProperty(value = {"主标题", "副标题2" ,"数字标题"},index = 3)
    private Double doubleData;
}
